SERVER_PORT = 8999
DEBUG = False
SQLALCHEMY_ECHO = False

AUTH_COOKIE_NAME = "mooc_food"

#定义cook的配置选项

AUTH_COOKIE_NAME = "mooc_food"

#过滤url
IGNORE_URLS = {
    "^/user/login"


}
API_IGNORE_URLS = {

    "^/api"
}

#进来需要判断的
IGNORE_CHECK_LOGIN_URLS = [
    "^/static",
    "^/favicon.ico"
]
PAGE_SIZE = 50
PAGE_DISPLAY = 10

STATUS_MAPPING = {
    "1":"正常",
    "0":"已删除"
}
#自己规定版本号
RELEASE_VERSION = "20210504001"

MINA_APP = {
    'appid':'wx24de39939381b53d',
    'appkey':'2a05c2d45a392fe1ba51b8c79534e44b',
    'paykey': 'xxxxxxxxxxxxxx换自己的',
    'callback_url':'/api/order/callback'
}

APP = {
    'domain':'http://127.0.0.1:9000'              #图片自己的渲染地址
}
UPLOAD = {
    'ext':['jpg','gif','bmp','jpeg','png'],   #上传的格式
#  上传的目录
    'prefix_path':'/web/static/upload/',
    'prefix_url':'/static/upload/'
}

PAY_STATUS_DISPLAY_MAPPING = {
    "0":"订单关闭",
    "1":"支付成功",
    "-8":"到支付",
    "-7":"代发货",
    "-6":"待确认",
    "-5":"带评价"

}

PAY_STATUS_MAPPING={
    "1":"已支付",
    "-8":"待支付",
    "0":"已关闭"
}